home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / osr5 / Makefile < prev   
Makefile  |  1998-07-29  |  12KB  |  335 lines

  1. # Makefile to build a custom+ SSO for SCO Skunkware 98
  2. # rr@sco.com
  3. #
  4. # Must use SCO OpenServer Development System make rather than GNU make (!?)
  5. #
  6.  
  7. HERE=`pwd`
  8. CFG=-config cdmt/cdmt.tape.config
  9. CDCFG=-config cdmt/cdmt.cd.config
  10. FLCFG=-config cdmt/cdmt.cd.config
  11.  
  12. #all:: cdmt.tape.config cdmt.cd.config sso ssocd
  13. #all:: ssoTAPE 
  14. #all:: ssoFLOP
  15. all:: ssocd 
  16.  
  17. # If we are exporting to the system from this SSO, then this 
  18. # rule will wipe out the existing (installed) SSO, making it uninstalled
  19. # and perhaps leaving custom databases in an awkward state.
  20. # so be warned
  21. ssocd : input/default.prd cdmt/cdmt.cd.config Makefile
  22.     CDMT_DIR=$(HERE) cdmtParse  $(CDCFG)
  23.     CDMT_DIR=$(HERE) cdmtCompress  $(CDCFG)
  24.     CDMT_DIR=$(HERE) cdmtArchive -f $(CDCFG)
  25.  
  26. ssoTAPE: input/default.prd cdmt/cdmt.tape.config Makefile
  27.     CDMT_DIR=$(HERE) cdmtParse  $(CFG)
  28.     CDMT_DIR=$(HERE) cdmtCompress  $(CFG)
  29.     CDMT_DIR=$(HERE) cdmtArchive -f $(CFG)
  30.  
  31. ssoFLOP: input/default.prd cdmt/cdmt.floppy.config Makefile
  32.     CDMT_DIR=$(HERE) cdmtParse  $(FLCFG)
  33.     CDMT_DIR=$(HERE) cdmtCompress  $(FLCFG)
  34.     CDMT_DIR=$(HERE) cdmtArchive -f $(FLCFG)
  35.  
  36. compress:
  37.     CDMT_DIR=$(HERE) cdmtCompress  $(CFG)
  38.  
  39. archive:
  40.     CDMT_DIR=$(HERE) cdmtArchive -f $(CFG)
  41.  
  42. #install ::
  43. #    @echo To install the skunk SSO on this machine run 
  44. #    @echo as root 
  45. #    @echo make export enable 
  46. #
  47. # install the archives/TAPE onto my machine, two passes, Load and Enable
  48.  
  49. # must be root to do this
  50. install:: load enable
  51.  
  52. # custom load is -L, -z is the image directory
  53. export load:: archives/TAPE
  54.     custom -p SKUNK98:default -L -z $(HERE)/archives/TAPE
  55.  
  56. # custom enable, this requires that it be "loaded", then we can populate 
  57. # the /usr space. 
  58. enable: /opt/P/SKUNK98
  59.     custom -p SKUNK98:default -e
  60.  
  61. no_skunk really_clean_sys : disable remove clean_system
  62. # custom disable, but dont remove
  63. disable:
  64.     custom -p SKUNK98:default -d
  65. # really remove the files from /opt/?/SKUNK98
  66. remove:
  67.     custom -p SKUNK98:default -r
  68. # remove SKUNK98 from the /opt area
  69. clean_system::
  70.     rm -rf /opt/?/SKUNK98 /var/opt/K/SKUNK98
  71.  
  72. # export the ssoCD to my machine
  73. # do a quick install on my own machine
  74. # start by disabling the skunk on my machine 
  75. # only works if the perms in the ssoCD dir allow those binaries to be
  76. # executed and read ...  to get this right run "make fixall"
  77. export_CD:  ssocd 
  78.     -custom -p SKUNK98:default -d
  79.     rm -rf /opt/?/SKUNK98 /var/opt/K/SKUNK98
  80.     -mkdir -p /opt/P/SKUNK98/default /opt/K/SKUNK98 /var/opt/K/SKUNK98
  81.     ( cd ./ssoCD ; for i in opt/P/SKUNK98/default/5.0; do \
  82.         ln -s $(HERE)/$$i /$$i ; \
  83.     done )
  84.     ( cd ./ssoCD ; for i in opt/K/SKUNK98/*; do \
  85.         mkdir -p /$$i ; \
  86.     done )
  87.     ( cd ./ssoCD ; for i in opt/K/SKUNK98/*/*; do \
  88.         ln -s $(HERE)/$$i /$$i ; \
  89.     done )
  90.  
  91. # just a quick fix, for stuff we know we need to tweak ...
  92. # dont run this on a readonly ssoCD 
  93. fixup_perms fp quickfix: 
  94.     find ./ssoCD -name "ccs" -exec chmod +x {} \;  
  95.     chmod +x ./ssoCD/opt/K/SKUNK98/Xmcd/2.1/libdi.d/configure.sh 
  96.  
  97. # this is not quick at all ...
  98. # and you must be root, should be done after a "make export" 
  99. # and before make enable
  100. fixall fix_all fixperms fixperm: 
  101.     custom -p SKUNK98:default -v quick -x >/dev/null
  102.  
  103. # to test the prd database file
  104. parse.prd parse prd :
  105.     CDMT_DIR=$(HERE) cdmtParse -prd input/default.prd  $(CFG) 
  106.  
  107. # after a compress and parse
  108. archCD : 
  109.     CDMT_DIR=$(HERE) cdmtArchive -f $(CDCFG)
  110. arch : 
  111.     CDMT_DIR=$(HERE) cdmtArchive -f $(CFG)
  112.  
  113. CMPNTS=\
  114. ./audio/mpg123-0.59k/input/mpg123.cmpnt \
  115. ./audio/oss-980728/input/OSS.cmpnt \
  116. ./audio/sox-11.12/input/Sox.cmpnt \
  117. ./audio/timidity-0.2i/input/Midi.cmpnt \
  118. ./audio/xmcd-2.3/input/Xmcd.cmpnt \
  119. ./audio/xmmix-1.2/input/XMmix.cmpnt \
  120. ./db/addressbook-0.7/input/Addressbook.cmpnt \
  121. ./db/mktable-1.0/input/Mktable.cmpnt \
  122. ./db/msql-2.0.3/input/Msql.cmpnt \
  123. ./db/mysql-3.21.26/input/Mysql.cmpnt \
  124. ./devtools/autoconf-2.12/input/Autoconf.cmpnt \
  125. ./devtools/bison-1.25/input/Bison.cmpnt \
  126. ./devtools/cvs-1.9/input/Cvs.cmpnt \
  127. ./devtools/gcc-98q2/input/Gcc.cmpnt \
  128. ./devtools/gdb-4.17/input/Gdb.cmpnt \
  129. ./devtools/flex-2.5.4/input/Flex.cmpnt \
  130. ./devtools/getline-3.11/input/Getline.cmpnt \
  131. ./devtools/indent-1.9.1/input/Indent.cmpnt \
  132. ./devtools/make-3.76.1/input/Make.cmpnt \
  133. ./devtools/mkpkg-1.1/input/Mkpkg.cmpnt \
  134. ./devtools/mkvol-1.1/input/Mkvol.cmpnt \
  135. ./devtools/patch-2.5/input/Patch.cmpnt \
  136. ./devtools/rcs-5.7/input/Rcs.cmpnt \
  137. ./devtools/readline-2.1/input/Readline.cmpnt \
  138. ./devtools/SmallEiffel-0.91/input/SmallEiffel.cmpnt \
  139. ./editors/ashe-1.3/input/XHTML.cmpnt \
  140. ./editors/vile-7.3/input/Vile.cmpnt \
  141. ./editors/pico-3.96/input/Pico.cmpnt \
  142. ./editors/nedit-5.0.2/input/Nedit.cmpnt \
  143. ./editors/elvis-2.0/input/Elvis.cmpnt \
  144. ./editors/emacs-20.2/input/Emacs.cmpnt \
  145. ./editors/nvi-1.79/input/Nvi.cmpnt \
  146. ./editors/joe-2.8/input/Joe.cmpnt \
  147. ./editors/jed-0.98.7/input/Jed.cmpnt \
  148. ./editors/tags-1.0/input/Tags.cmpnt \
  149. ./editors/xcoral-3.14/input/Xcoral.cmpnt \
  150. ./editors/xemacs-20.4/input/Xemacs.cmpnt \
  151. ./editors/vim-5.1/input/Vim.cmpnt \
  152. ./emulators/Eterm-0.8pre6/input/Eterm.cmpnt \
  153. ./emulators/lxrun-0.9.0/input/Lxrun.cmpnt \
  154. ./emulators/rxvt-2.4.5/input/Rxvt.cmpnt \
  155. ./fileutil/cpio-2.4.2/input/Cpio.cmpnt \
  156. ./fileutil/diffutils-2.7/input/Diffutils.cmpnt \
  157. ./fileutil/file-3.22/input/File.cmpnt \
  158. ./fileutil/fileutils-3.16/input/Fileutils.cmpnt \
  159. ./fileutil/findutils-4.1/input/Findutils.cmpnt \
  160. ./fileutil/gifutils-1.0/input/gifutils.cmpnt \
  161. ./fileutil/git-4.3.17/input/Git.cmpnt \
  162. ./fileutil/glimpse-4.1/input/Glimpse.cmpnt \
  163. ./fileutil/makecd-1.0/input/MakeCD.cmpnt \
  164. ./fileutil/mc-4.1/input/mc.cmpnt \
  165. ./fileutil/mtools-3.8/input/Mtools.cmpnt \
  166. ./fileutil/tar-1.12/input/Tar.cmpnt \
  167. ./interp/expect-5.25/input/Expect.cmpnt \
  168. ./interp/perl-5.004_04/input/Perl.cmpnt \
  169. ./interp/python-1.5/input/Python.cmpnt \
  170. ./interp/tcl-8.0p2/input/Tcl.cmpnt \
  171. ./interp/tclx-8.0.2/input/TclX.cmpnt \
  172. ./interp/tk-8.0p2/input/TK.cmpnt \
  173. ./java/Acme-1.0.2/input/Acme.cmpnt \
  174. ./java/Djava-052097/input/Djava.cmpnt \
  175. ./java/jasmin-1.06/input/Jasmin.cmpnt \
  176. ./java/klassmaster-1.0/input/Klassmaster.cmpnt \
  177. ./java/vrwave-0.9/input/VRwave.cmpnt \
  178. ./libraries/FSUpthreads-3.5/input/FSUpthreads.cmpnt \
  179. ./libraries/Glib-1.3/input/Glib.cmpnt \
  180. ./libraries/ncurses-4.2/input/Ncurses.cmpnt \
  181. ./libraries/slang-1.2.2/input/Slang.cmpnt \
  182. ./mail/fetchmail-4.5.4/input/Fetchmail.cmpnt \
  183. ./mail/hypermail-1.02/input/Hypermail.cmpnt \
  184. ./mail/majordomo-1.94.4/input/Majordomo.cmpnt \
  185. ./mail/procmail-3.11pre7/input/Procmail.cmpnt \
  186. ./mail/mm-2.7/input/Metamail.cmpnt \
  187. ./mail/mutt-0.93.2/input/Mutt.cmpnt \
  188. ./mail/spambnc-1.00h/input/Spambnc.cmpnt \
  189. ./mail/xbuffy-3.3/input/XBuffy.cmpnt \
  190. ./net/Count-2.4/input/Count.cmpnt \
  191. ./net/apache-1.3.0/input/Apache.cmpnt \
  192. ./net/freeWAIS-sf-2.2.10/input/freeWAIS.cmpnt \
  193. ./net/httpanalyze-2.01/input/HttpAnalyze.cmpnt \
  194. ./net/irc-2.9.5/input/Irc.cmpnt \
  195. ./net/ldap-3.3/input/LDAP.cmpnt \
  196. ./net/lynx-2.8rel2/input/Lynx.cmpnt \
  197. ./net/ncftp-2.4.3/input/Ncftp.cmpnt \
  198. ./net/omniORB-2.5.0/input/omniORB.cmpnt \
  199. ./net/php-3.0RC3/input/PHP.cmpnt \
  200. ./net/squid-1.1.22/input/Squid.cmpnt \
  201. ./net/tftpd-1.0/input/Tftpd.cmpnt \
  202. ./net/wget-1.5.2/input/Wget.cmpnt \
  203. ./net/wu-ftpd-2.4/input/wuftpd.cmpnt \
  204. ./net/wwwtar-1.0/input/WWWtar.cmpnt \
  205. ./net/xarchie-2.0.10/input/Xarchie.cmpnt \
  206. ./net/xdir-2.0/input/XDir.cmpnt \
  207. ./net/zircon-1.18.113/input/Zircon.cmpnt \
  208. ./news/inn-2.0/input/INN.cmpnt \
  209. ./shells/tcsh-6.07/input/Tcsh.cmpnt \
  210. ./shells/zsh-3.1.4/input/Zsh.cmpnt \
  211. ./shellutil/bzip2-0.1pl2/input/Bzip2.cmpnt \
  212. ./shellutil/gawk-3.0.3/input/Gawk.cmpnt \
  213. ./shellutil/mawk-1.3.3/input/Mawk.cmpnt \
  214. ./shellutil/gzip-1.2.4/input/GZIP.cmpnt \
  215. ./shellutil/less-332/input/Less.cmpnt \
  216. ./shellutil/m4-1.4/input/M4.cmpnt \
  217. ./shellutil/sh-utils-1.15/input/Shutils.cmpnt \
  218. ./shellutil/unzip-5.3/input/Unzip.cmpnt \
  219. ./shellutil/zip-2.1/input/Zip.cmpnt \
  220. ./sysadmin/SarCheck-3.61lite/input/SarCheck.cmpnt \
  221. ./sysadmin/hog-1.0/input/Hog.cmpnt \
  222. ./sysadmin/johnd-1.1/input/Johnd.cmpnt \
  223. ./sysadmin/pkgtools-skw98/input/Pkgtools.cmpnt \
  224. ./sysadmin/rpm-2.4.5/input/Rpm.cmpnt \
  225. ./sysadmin/top-3.5beta5/input/Top.cmpnt \
  226. ./textproc/a2ps-4.10.1/input/A2ps.cmpnt \
  227. ./textproc/enscript-1.6.1/input/Enscript.cmpnt \
  228. ./textproc/groff-1.11/input/Groff.cmpnt \
  229. ./textproc/ispell-3.1.20/input/Ispell.cmpnt \
  230. ./textproc/gs-5.10/input/GS.cmpnt \
  231. ./textproc/par-1.50/input/Par.cmpnt \
  232. ./textproc/sgml-tools-1.0.6/input/sgmltools.cmpnt \
  233. ./textproc/tex-7.2a/input/TeX.cmpnt \
  234. ./textproc/texinfo-3.12/input/Texinfo.cmpnt \
  235. ./video/mpeg_bits-1.0b/input/Mpeg_bits.cmpnt \
  236. ./video/mpeg_blocks-1.0b/input/Mpeg_blocks.cmpnt \
  237. ./video/mpeg_encode-1.5b/input/Mpeg_encode.cmpnt \
  238. ./video/mpeg_play-2.3/input/Mpeg_play.cmpnt \
  239. ./video/mpeg_stat-2.2b/input/Mpeg_stat.cmpnt \
  240. ./x11/apps/xacc-1.0.17/input/Xacc.cmpnt \
  241. ./x11/apps/xfilemanager-0.4.1/input/XFM.cmpnt \
  242. ./x11/apps/xinvest-2.5.1/input/Xinvest.cmpnt \
  243. ./x11/apps/xmorph-17jan97/input/Xmorph.cmpnt \
  244. ./x11/apps/xpaint-2.5.4/input/Xpaint.cmpnt \
  245. ./x11/apps/xquote-1.1/input/Xquote.cmpnt \
  246. ./x11/apps/xtide-2.0b2/input/XTide.cmpnt \
  247. ./x11/apps/xsw-5.0.4/input/Xsw.cmpnt \
  248. ./x11/apps/xtar-1.4/input/Xtar.cmpnt \
  249. ./x11/games/crossfire-0.94.0/input/Crossfire.cmpnt \
  250. ./x11/games/mirrormagic-1.3/input/Mirror.cmpnt \
  251. ./x11/games/xblackjack-2.2/input/Xbj.cmpnt \
  252. ./x11/games/xboing-2.4/input/Xboing.cmpnt \
  253. ./x11/games/xconq-7.2.2/input/Xconq.cmpnt \
  254. ./x11/games/xdoom-980307/input/Xdoom.cmpnt \
  255. ./x11/games/xgalaga-2.0.34/input/Xgal.cmpnt \
  256. ./x11/games/LinCity-1.09/input/LinCity.cmpnt \
  257. ./x11/games/xpilot-3.7.1/input/Xpilot.cmpnt \
  258. ./x11/games/spellcast-1.0/input/Spellcast.cmpnt \
  259. ./x11/graphics/ImageMagick-4.0.7/input/IMGCK.cmpnt \
  260. ./x11/graphics/pixmaps-2.0/input/Pixmaps.cmpnt \
  261. ./x11/graphics/bitmap-x11r5/input/Bitmap.cmpnt \
  262. ./x11/graphics/freefonts-0.1/input/Freefonts.cmpnt \
  263. ./x11/graphics/GimpManual-1.0.0/input/GimpMan.cmpnt \
  264. ./x11/graphics/gimp-1.0/input/Gimp.cmpnt \
  265. ./x11/graphics/gnuplot-3.5/input/Gnuplot.cmpnt \
  266. ./x11/graphics/xfig-3.2/input/Xfig.cmpnt \
  267. ./x11/graphics/transfig-3.2/input/Transfig.cmpnt \
  268. ./x11/misc/astrolog-5.30/input/Astrolog.cmpnt \
  269. ./x11/misc/mathrec-1.1/input/Mathrec.cmpnt \
  270. ./x11/misc/xaos-3.0/input/XaoS.cmpnt \
  271. ./x11/misc/xdaliclock-2.10/input/Xdaliclock.cmpnt \
  272. ./x11/misc/xearth-1.0/input/Xearth.cmpnt \
  273. ./x11/misc/xfishtank/input/xfishtank.cmpnt \
  274. ./x11/misc/xkeycaps-2.42/input/Xkey.cmpnt \
  275. ./x11/misc/xsnow-1.40/input/Xsnow.cmpnt \
  276. ./x11/misc/xtartan-2.3/input/Xtartan.cmpnt \
  277. ./x11/savers/xlockmore-4.09/input/Xlock.cmpnt \
  278. ./x11/savers/xscreensaver-2.24/input/Xsaver.cmpnt \
  279. ./x11/viewers/Xswallow-1.0.11/input/Xswallow.cmpnt \
  280. ./x11/viewers/ghostview-1.5/input/Ghostview.cmpnt \
  281. ./x11/viewers/gv-3.5.8/input/GV.cmpnt \
  282. ./x11/viewers/xanim-2.70.7.0/input/Xanim.cmpnt \
  283. ./x11/viewers/xpdf-0.7a/input/Xpdf.cmpnt \
  284. ./x11/viewers/xv-3.10a/input/XV.cmpnt \
  285. ./x11/winman/fvwm-2.0.46/input/Fvwm.cmpnt \
  286. ./x11/winman/kde-1.0/input/Kde.cmpnt \
  287. ./x11/winman/WindowMaker-0.16.1/input/WindowMaker.cmpnt \
  288. ./x11/winman/AfterStep-1.0/input/ASTP.cmpnt
  289. # ./x11/winman/enlightenment-0.13.3/input/Enlightenment.cmpnt \
  290. # ./x11/misc/stacey-1.1/input/Stacey.cmpnt \
  291. # ./audio/maplay-1.2/input/Maplay.cmpnt \
  292. # ./net/Mosaic-2.7b4/input/Mosaic.cmpnt \
  293. # ./audio/Xmixer-1.1/input/Xmixer.cmpnt \
  294.  
  295. .PRECIOUS:$(CMPNTS)
  296. $(CMPNTS) : cdmt/cdmt.tape.config 
  297.     cdmtParse -cmpnt $@
  298.     cdmtCompress -cmpnt $@
  299.     #cdmtArchive 
  300.  
  301.  
  302. # some rules for building and test install of one cmpnt
  303. # first run 
  304. # make Xmcd arch 
  305. # then 
  306. # make Xmcd_try 
  307. # we disable, them remove, then load from the arch, then enable ... 
  308. # this can be done for other cmpnts/packages as well
  309. Xmcd_try : 
  310.     custom -p SKUNK98:default -d SKUNK98:Xmcd
  311.     custom -p SKUNK98:default -r SKUNK98:Xmcd 
  312.     custom -p SKUNK98:default -L SKUNK98:Xmcd -z $(HERE)/archives/TAPE
  313.     custom -p SKUNK98:default -e SKUNK98:Xmcd
  314. gds_try : 
  315.     custom -p SKUNK98:default -d SKUNK98:gds
  316.     custom -p SKUNK98:default -r SKUNK98:gds 
  317.     custom -p SKUNK98:default -L SKUNK98:gds -z $(HERE)/archives/TAPE
  318.     custom -p SKUNK98:default -e SKUNK98:gds
  319. groff_try : 
  320.     custom -p SKUNK98:default -d SKUNK98:groff
  321.     custom -p SKUNK98:default -r SKUNK98:groff 
  322.     custom -p SKUNK98:default -L SKUNK98:groff -z $(HERE)/archives/TAPE
  323.     custom -p SKUNK98:default -e SKUNK98:groff
  324.  
  325. individual: make_ind.sh
  326.     sh make_ind.sh $(CMPNTS)
  327.  
  328. distfiles: make_dist.sh
  329.     sh make_dist.sh $(CMPNTS)
  330.  
  331. undistfiles: make_undist.sh
  332.     sh make_undist.sh $(CMPNTS)
  333.